package com.example.demo.aop;

/**
 * @author Rocket
 * @version 10.0.1
 * @date 2021-08-29 9:41 AM
 */
public class CalculatorTest {

    public static void main(String[] args) {
        ICalculator ari = new ArithmCalculator();
//        ari.add(1,2);
//        System.out.println("Add is invoked.");

        ICalculator ical = (ICalculator) CalculatorLoggingHandler.createProxy(
                CalculatorValidationHandler.createProxy(ari));
        ical.add(-12d, 3d);
        //System.out.println(ical);

    }
}
